import request from '@/utils/request'

// 分页查询专家列表
export function getZhuanJiaList(params) {
  return request({
    method: 'get',
    url: '/zhkc/expert/query',
    params
  })
}
//专家新增编辑
//pkid为空为新增
//pkid不为空则是编辑
export function addEditZhuanJia(params) {
  return request({
    method: 'post',
    url: '/zhkc/expert/saveOrUpdate',
    data: params
  })
}

//专家详情
export function getDetail(params) {
  return request({
    method: 'get',
    url: '/zhkc/expert/queryById',
    params
  })
}
//专家删除
export function delZhuanJia(pkid) {
  return request({
    method: 'delete',
    url: '/zhkc/expert/removeById',
    params: { pkid }
  })
}
